import 'package:flutter/material.dart';

class CustomCommonItem {
  final Color color;
  final String text;
  final double? height;

  CustomCommonItem({required this.color, required this.text, this.height});
}

class CommonItem extends StatelessWidget {
  const CommonItem({super.key, required this.item});
  final CustomCommonItem item;

  @override
  Widget build(BuildContext context) {
    return Container(
      height: item.height,
      color: item.color,
      alignment: Alignment.center,
      child: Text(
        item.text,
        style: const TextStyle(color: Colors.white, fontSize: 20),
      ),
    );
  }
}
